#ifndef FRMUSERMODIFY_H
#define FRMUSERMODIFY_H

#include <QDialog>
#include "userinfoservice.h"
#include "frmuserlist.h"

namespace Ui {
class FrmUserModify;
}

class FrmUserModify : public QDialog
{
    Q_OBJECT

public:
    explicit FrmUserModify(QWidget *parent = 0);
    ~FrmUserModify();

private:
    Ui::FrmUserModify *ui;

    UserInfoService *service;
public:
    void setUserGuid(QString userGUID);
    void setUserName(QString userName);
    void setRealName(QString realName);
    void setDepartment(QString department);
    void setUserType(int userType);

signals:
    void sendData();
private:
    //UserGUID,UserName,RealName,Department,UserType
    QString userGUID;
    QString userName;
    QString realName;
    QString department;
    int userType;

private slots:
    void on_btnConfirm_clicked();
    void on_btnCancel_clicked();
    void on_rbtUnAdmin_toggled(bool checked);
    void on_rbtAdmin_toggled(bool checked);
};

#endif // FRMUSERMODIFY_H
